package com.crm.entity;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@Entity
@Table(name="thumbnail")
@ApiModel("缩略图")
public class Thumbnail implements Serializable{

	
	private static final long serialVersionUID = 1L;

	@Id
	@GenericGenerator(name = "system-uuid", strategy = "uuid2")
	@GeneratedValue(generator = "system-uuid")
	@ApiModelProperty(value="缩略图id",required=true,hidden = true)
	private String id;
	
	@ApiModelProperty(value="缩略图链接",required=true)
	private String src;
	
	@ApiModelProperty(value="缩略图对应的图片id",required=true)
	private String photoId;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getSrc() {
		return src;
	}

	public void setSrc(String src) {
		this.src = src;
	}

	public String getPhotoId() {
		return photoId;
	}

	public void setPhotoId(String photoId) {
		this.photoId = photoId;
	}

	@Override
	public String toString() {
		return "Thumbnail [id=" + id + ", src=" + src + ", photoId=" + photoId + "]";
	}
	
}
